package com.test.designPattern.ch27;

/**
 * @ClassName Client
 * @Description 客户端，客户端调用业务代表，执行不同的任务
 * @Author 维康
 * @Date 2018/7/2 16:36
 * @Version 1.0
 **/
public class Client {

    BusinessDelegate businessService;

    public Client(BusinessDelegate businessService){
        this.businessService  = businessService;
    }

    public void doTask(){
        businessService.doTask();
    }
}
